﻿#region 命名空间

using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using WinnerCMS.BLL;
using WinnerCMS.Common;
using WinnerCMS.Model;
using WinnerCMS.Model.Attribute;

#endregion

namespace WinnerCMS.WebUI.Admin.Window
{
    [Access]
    public partial class UpPic : WebFactory.PageBase
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            //if (ddlCategoryId.SelectedIndex == 0)
            //{
            //    MsgBox.Message("请选择栏目再上传", this);
            //    return;
            //}
        }

        protected void btnUpLoad_Click(object sender, EventArgs e)
        {
            if (this.FileUpload1.HasFile)
            {
                var strSaveFile = UpFileHepler.UpLoadFile(this.FileUpload1);

                MyJavascript.RegJS(this, "ClickRetrun(\"" + strSaveFile + "\")");
            }
            else
            {
                MsgBox.Message("请选择文件再上传！", this);
            }
        }
    }
}